package com.rst;

import java.util.Scanner;

public class Str
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		System.out.println("enter a string");
		String str = sc.nextLine();
		int count = 0;
		for(int i = 0; i<str.length(); i++)
		{
			count++;
		}
		System.out.println(count);
	}
}
